package com.my.log.config.prop;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;

//ConfigurationProperties
//@EnableConfigurationProperties(BladeRequestLogProperties.class)//加载配置对象到容器
// 不然要报错

/**
 * @author timo 2021/2/25
 */
@RefreshScope
@ConfigurationProperties("blade.log.request")
public class BladeRequestLogProperties {

    private BladeLogLevel level;

    public BladeRequestLogProperties() {
        this.level = BladeLogLevel.BODY;
    }

    public BladeLogLevel getLevel() {
        return this.level;
    }

    public void setLevel(final BladeLogLevel level) {
        this.level = level;
    }
}
